#include "Game.h"

Game::Game()
{
	m_TheCharacter.setMapData(&m_TheMap);
	m_TheCharacter.spawn();
	m_redrawGame = true;
}

void Game::handleInput(char a_input)
{
	input = a_input;
	m_TheCharacter.handleInput(input);
}

void Game::update(int msPassed)
{
	m_TheCharacter.update();
}

void Game::draw()
{
	m_TheMap.draw();
	m_TheCharacter.draw();
	m_redrawGame = false;
}

bool Game::checkWin()
{
	return false;
}

void Game::redraw()
{
	m_redrawGame = true;
}